package com.itheima.dao;

import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderDao {

    List<Order> findByCondition(Order order);
    void add(Order order);
    Order findByid(Integer id);
    List<Map<String,Object>> getOrderCountBySetmeal();


    Integer findOrderCountByDate(String today);

    Integer findOrderCountAfterDate(String thisWeekMonday);

    Integer findVisitsCountByDate(String today);

    Integer findVisitsCountAfterDate(String thisWeekMonday);

    List<Map> findHotSetmeal();


    List<Order> findOrdersByCurrentDayAndMemberId(@Param("date") String date,@Param("memberId") Integer memberId);

    List<Order> findOrdersByCurrentDayAndSetMealId(@Param("date")String date,@Param("memberId") Integer setMealId);

    List<Order> findOrdersByCurrentDay(String date);
}
